@extends('layouts.app')

@section('content')
        <div class="header">
            <ul class="breadcrumb">
                <li>权限管理</li>
                <li><a href="">编辑权限</a> </li>
            </ul>
        </div>
        <div class="main-content">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#home" data-toggle="tab">编辑</a></li>
            </ul>

            <div class="rows">
                <div class="col-md-12">
                    <br>
                    <div id="myTabContent" class="tab-content">
                        <div class="tab-pane active in" id="home">
                            <form id="tab" class="form-horizontal" method="post">
                                <input type="hidden" name="_token" value="{{ csrf_token() }}">
                                <div class="form-group">
                                    <label for="input1" class="pull-left w120 control-label">名称</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="name" id="name" placeholder="名称" value="{{$re->name}}" required>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="input2" class="pull-left w120 control-label">模块</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="app" id="app" placeholder="模块" value="{{$re->app}}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="input3" class="pull-left w120 control-label">控制器</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="controller" id="controller" placeholder="控制器" value="{{$re->controller}}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="input4" class="pull-left w120 control-label">方法</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="action" id="action" placeholder="方法" value="{{$re->action}}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="input5" class="pull-left w120 control-label">URL</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="rules" id="rules" placeholder="URL" value="{{$re->rules}}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="input6" class="pull-left w120 control-label">图标</label>
                                    <div class="col-sm-6">
                                        <input type="text" class="form-control" name="icon" id="icon" placeholder="图标" value="{{$re->icon}}">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="input7" class="pull-left w120 control-label">是否显示</label>
                                    <label class="radio-inline" style="margin-left:15px;">
                                        <input type="radio" name="is_show" value="1" @if($re->is_show==1) checked @endif>显示
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="is_show" value="2" @if($re->is_show==2) checked @endif>隐藏
                                    </label>
                                </div>
                                <div class="btn-toolbar list-toolbar btn-toolbar2">
                                    <button class="btn btn-primary">确定</button>
                                    <a href="javascript:history.back(-1);" class="btn btn-back">返回</a>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
@stop